import request from '@/utils/request.js'

export function loginApi(params) {
  return request.post('/api/login', params)
}

export function initApi(params) {
  return request.post('/api/main/init', params)
}
export function init1Api(params) {
  return request.post('/api/main/init1', params)
}
export function addApi(params) {
  return request.post('/api/main/add', params)
}
export function listApi(params) {
  return request.post('/api/auth/list', params)
}
export function editApi(params) {
  return request.post('/api/main/edit', params)
}
export function delApi(params) {
  return request.post('/api/main/del', params)
}
export function isUsedApi(params) {
  return request.post('/api/main/isUsed', params)
}

export function saveConfigApi(params) {
  return request.post('/api/main/saveConfig', params)
}

